package Class01;

public class Traingle implements Shape{
    private double a,b,c;

    public Traingle(double a, double b, double c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
    public double Area(){
        return 0.25*Math.sqrt((a+b+c)*(a+b-c)*(a+c-b)*(b+c-a));
    }
    public double Perimeter(){
        return a+b+c;
    }
}

